import dayjs from 'dayjs'

const format = (text,f='YYYY-MM-DD HH:mm')=>{
    if(Number(text)<=0){
        return "-"
    }
    return dayjs(text).format(f) 
}

export default format